using System.ComponentModel;

namespace SumerCoreDevOps.Shared.Enums;

/// <summary>
/// TCP 消息类型枚举
/// </summary>
public enum TcpMessageType : byte
{
    [Description("节点注册")]
    NodeRegister = 0x01,

    [Description("注册响应")]
    RegisterResponse = 0x02,

    [Description("节点认证")]
    NodeAuth = 0x03,

    [Description("认证响应")]
    AuthResponse = 0x04,

    [Description("心跳")]
    Heartbeat = 0x05,

    [Description("心跳响应")]
    HeartbeatResponse = 0x06,

    [Description("工作流步骤下发")]
    WorkflowStepDispatch = 0x0A,

    [Description("步骤状态上报")]
    StepStatusReport = 0x0B,

    [Description("上下文同步")]
    ContextSync = 0x0C,

    [Description("凭证请求")]
    CredentialRequest = 0x0D,

    [Description("凭证响应")]
    CredentialResponse = 0x0E,

    [Description("日志流")]
    LogStream = 0x0F,

    [Description("清理指令")]
    CleanupCommand = 0x10,

    [Description("清理结果")]
    CleanupResult = 0x11,

    [Description("配置变更通知")]
    ConfigurationChanged = 0x12,

    [Description("产物上传")]
    ArtifactUpload = 0x13,

    [Description("产物下载请求")]
    ArtifactDownloadRequest = 0x14,

    [Description("产物下载响应")]
    ArtifactDownloadResponse = 0x15
}
